avoid round-tripping through string
authorAndy Russell <arussell123@gmail.com>
Fri, 2 Dec 2016 19:40:37 +0000 (14:40 -0500)
committerAndy Russell <arussell123@gmail.com>
Thu, 8 Dec 2016 21:11:19 +0000 (16:11 -0500)
src/cargo/ops/cargo_compile.rs

index a0e70e9ba3f7105e174e0dbf4ce3bf8161e56d98..8a5ed55c7237c2ccd3a6a39e3baa2f2190cd407e 100644 (file)
@@ -199,7 +199,7 @@ pub fn compile_ws<'a>(ws: &Workspace<'a>,
     let mut pkgids = Vec::new();
     if spec.len() > 0 {
         for p in spec.iter() {
-            pkgids.push(resolve_with_overrides.query(&p.to_string())?);
+            pkgids.push(p.query(resolve_with_overrides.iter())?);
         }
     } else {
         let root_package = ws.current()?;